<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test1.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <form action="Login.action"  method="post">
    	<h2>登录</h2>
    	用户名：<input   type="text"  name="user.uname"/>
    	密码：<input   type="password"  name="user.password"/>
    	<input  type="submit"  value="go"/>
    </form>
    <h1>
    <c:if test="${flag==1}">添加用户成功</c:if>
    <c:if test="${flag==2}">修改用户成功</c:if>
    <c:if test="${flag==3}">删除用户成功</c:if>
    </h1>
    <form action="QueryUser.action"  method="post">
    查询单个用户，请输入用户id<input  type="text"  name="user.uid"/>
    <input  type="submit"  value="go"/>
    </form>
   
  </body>
</html>
